9031f521de4888cdb889998b0bbbb28759297f2f,ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/resources/AlertResources.java,AlertResources,getTriggerByNotificationNTriggerId,#HttpServletRequest#BigInteger#BigInteger#BigInteger#,387

Before Change


		Alert alert = alertService.findAlertByPrimaryKey(alertId);

		if (alert != null) {
			validateResourceAuthorization(req, alert.getOwner(), owner);
			for (Notification notification : alert.getNotifications()) {
				if (notification.getId().equals(notificationId)) {
					for (Trigger trigger : notification.getTriggers()) {

After Change



		PrincipalUser owner = validateAndGetOwner(req, null);
		Alert alert = alertService.findAlertByPrimaryKey(alertId);
		if (alert != null && !alert.isShared()) {
			validateResourceAuthorization(req, alert.getOwner(), owner);
		}
		if (alert != null) {
			for (Notification notification : alert.getNotifications()) {